crypto/tls.Conn.newRecordHeaderError (method)

5 uses

	crypto/tls (current package)
		conn.go#L579: func (c *Conn) newRecordHeaderError(conn net.Conn, msg string) (err RecordHeaderError) {
		conn.go#L646: 		return c.in.setErrorLocked(c.newRecordHeaderError(nil, "unsupported SSLv2 handshake received"))
		conn.go#L660: 		return c.in.setErrorLocked(c.newRecordHeaderError(nil, msg))
		conn.go#L668: 			return c.in.setErrorLocked(c.newRecordHeaderError(c.conn, "first record does not look like a TLS handshake"))
		conn.go#L674: 		return c.in.setErrorLocked(c.newRecordHeaderError(nil, msg))